[INFO] cloning repository https://github.com/Haxry/my-chain
[INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/Haxry/my-chain" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaxry%2Fmy-chain", kill_on_drop: false }`
[INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaxry%2Fmy-chain'...
[INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }`
[INFO] [stdout] ad3707534f39f87725d9b894c88464220c9852f2
[INFO] fixing Haxry/my-chain against try#622891a4e29178280638a6b63a8908bde2c0c854+cargoflags=-Zfix-edition=start=2015 for pr-157817-2
[INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2FHaxry%2Fmy-chain" "/workspace/builds/worker-3-tc1/source", kill_on_drop: false }`
[INFO] [stderr] Cloning into '/workspace/builds/worker-3-tc1/source'...
[INFO] [stderr] done.
[INFO] started tweaking git repo https://github.com/Haxry/my-chain
[INFO] finished tweaking git repo https://github.com/Haxry/my-chain
[INFO] tweaked toml for git repo https://github.com/Haxry/my-chain written to /workspace/builds/worker-3-tc1/source/Cargo.toml
[INFO] validating manifest of git repo https://github.com/Haxry/my-chain on toolchain 622891a4e29178280638a6b63a8908bde2c0c854
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }`
[INFO] crate git repo https://github.com/Haxry/my-chain already has a lockfile, it will not be regenerated
[INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }`
[INFO] [stderr]     Updating crates.io index
[INFO] [stderr]  Downloading crates ...
[INFO] [stderr]   Downloaded merkle-cbt v0.3.2
[INFO] [stderr]   Downloaded is-terminal v0.4.15
[INFO] [stderr]   Downloaded bitcoincash-addr v0.5.2
[INFO] [stderr]   Downloaded sled v0.34.7
[INFO] [stderr]   Downloaded bitcoin_hashes v0.7.6
[INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/source:/opt/rustwide/workdir:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-3-tc1/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-m" "1610612736" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:3a6becf2bc8dde7f3fa57ede90e4f284e72d296796fc446bbb1e2c7cc0530151" "sleep" "infinity", kill_on_drop: false }`
[INFO] [stdout] d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e
[INFO] running `Command { std: "docker" "start" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "inspect" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "exec" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=" "-e" "RUSTDOCFLAGS=" "-w" "/opt/rustwide/workdir" "--user" "0:0" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e" "/opt/rustwide/cargo-home/bin/cargo" "+622891a4e29178280638a6b63a8908bde2c0c854" "fix" "--allow-no-vcs" "--allow-dirty" "--frozen" "--all" "--all-targets" "--message-format=json" "-Zfix-edition=start=2015", kill_on_drop: false }`
[INFO] [stderr]    Compiling unicode-ident v1.0.16
[INFO] [stderr]    Compiling syn v1.0.109
[INFO] [stderr]    Compiling serde v1.0.217
[INFO] [stderr]    Compiling object v0.36.7
[INFO] [stderr]     Checking instant v0.1.13
[INFO] [stderr]     Checking gimli v0.31.1
[INFO] [stderr]    Compiling gcc v0.3.55
[INFO] [stderr]    Compiling failure_derive v0.1.8
[INFO] [stderr]     Checking smallvec v1.13.2
[INFO] [stderr]     Checking generic-array v0.14.7
[INFO] [stderr]     Checking regex-automata v0.4.9
[INFO] [stderr]     Checking miniz_oxide v0.8.3
[INFO] [stderr]     Checking rand v0.4.6
[INFO] [stderr]     Checking log v0.4.25
[INFO] [stderr]    Compiling serde_json v1.0.138
[INFO] [stderr]     Checking rustc-demangle v0.1.24
[INFO] [stderr]    Compiling proc-macro2 v1.0.93
[INFO] [stderr]     Checking clap_builder v4.5.27
[INFO] [stderr]     Checking crossbeam-epoch v0.9.18
[INFO] [stderr]     Checking fs2 v0.4.3
[INFO] [stderr]     Checking is-terminal v0.4.15
[INFO] [stderr]     Checking time v0.1.45
[INFO] [stderr]     Checking rustc-serialize v0.3.25
[INFO] [stderr]     Checking parking_lot_core v0.8.6
[INFO] [stderr]     Checking bitcoin_hashes v0.7.6
[INFO] [stderr]     Checking merkle-cbt v0.3.2
[INFO] [stderr]     Checking parking_lot v0.11.2
[INFO] [stderr]     Checking sled v0.34.7
[INFO] [stderr]    Compiling quote v1.0.38
[INFO] [stderr]     Checking crypto-common v0.1.6
[INFO] [stderr]     Checking block-buffer v0.10.4
[INFO] [stderr]    Compiling rust-crypto v0.2.36
[INFO] [stderr]     Checking rand v0.3.23
[INFO] [stderr]    Compiling syn v2.0.98
[INFO] [stderr]     Checking digest v0.10.7
[INFO] [stderr]     Checking sha2 v0.10.8
[INFO] [stderr]     Checking clap v4.5.28
[INFO] [stderr]     Checking regex v1.11.1
[INFO] [stderr]     Checking addr2line v0.24.2
[INFO] [stderr]     Checking env_logger v0.10.2
[INFO] [stderr]     Checking backtrace v0.3.74
[INFO] [stderr]    Compiling zerocopy-derive v0.7.35
[INFO] [stderr]    Compiling serde_derive v1.0.217
[INFO] [stderr]    Compiling synstructure v0.12.6
[INFO] [stderr]     Checking zerocopy v0.7.35
[INFO] [stderr]     Checking bitcoincash-addr v0.5.2
[INFO] [stderr]     Checking failure v0.1.8
[INFO] [stderr]     Checking ppv-lite86 v0.2.20
[INFO] [stderr]     Checking rand_chacha v0.3.1
[INFO] [stderr]     Checking rand v0.8.5
[INFO] [stderr]     Checking bincode v1.3.3
[INFO] [stderr]     Checking my-chain v0.1.0 (/opt/rustwide/workdir)
[INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain`
[INFO] [stdout]  --> src/block.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::blockchain::Blockchain;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UNIX_EPOCH`
[INFO] [stdout]  --> src/block.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]   |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/blockchain.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::tx::{TxInput, TxOutput};
[INFO] [stdout]    |                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::error::Result`
[INFO] [stdout]  --> src/tx.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::error::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transaction::Transaction`
[INFO] [stdout]  --> src/tx.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::transaction::Transaction;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/tx.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::blockchain::Blockchain`
[INFO] [stdout]  --> src/block.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::blockchain::Blockchain;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout]   |
[INFO] [stdout]   = note: `#[warn(unused_imports)]` (part of `#[warn(unused)]`) on by default
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `UNIX_EPOCH`
[INFO] [stdout]  --> src/block.rs:7:29
[INFO] [stdout]   |
[INFO] [stdout] 7 | use std::time::{SystemTime, UNIX_EPOCH};
[INFO] [stdout]   |                             ^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `super::*`
[INFO] [stdout]   --> src/block.rs:98:9
[INFO] [stdout]    |
[INFO] [stdout] 98 |     use super::*;
[INFO] [stdout]    |         ^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `TxInput`
[INFO] [stdout]   --> src/blockchain.rs:10:17
[INFO] [stdout]    |
[INFO] [stdout] 10 | use crate::tx::{TxInput, TxOutput};
[INFO] [stdout]    |                 ^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::error::Result`
[INFO] [stdout]  --> src/tx.rs:1:5
[INFO] [stdout]   |
[INFO] [stdout] 1 | use crate::error::Result;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `crate::transaction::Transaction`
[INFO] [stdout]  --> src/tx.rs:2:5
[INFO] [stdout]   |
[INFO] [stdout] 2 | use crate::transaction::Transaction;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] warning: unused import: `std::collections::HashMap`
[INFO] [stdout]  --> src/tx.rs:3:5
[INFO] [stdout]   |
[INFO] [stdout] 3 | use std::collections::HashMap;
[INFO] [stdout]   |     ^^^^^^^^^^^^^^^^^^^^^^^^^
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]   --> src/cli.rs:88:22
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(from.clone(), to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^ ------------  ---------- expected `&str`, found `String`
[INFO] [stdout]    |                                            |
[INFO] [stdout]    |                                            expected `&str`, found `String`
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/transaction.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn new_UTXO(from: &str, to: &str, amount: i32, bc: &Blockchain) -> Result<Transaction> {
[INFO] [stdout]    |            ^^^^^^^^ ----------  --------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(&from.clone(), to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                                            +
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(from.clone(), &to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                                                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: arguments to this function are incorrect
[INFO] [stdout]   --> src/cli.rs:88:22
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(from.clone(), to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                      ^^^^^^^^^^^^^^^^^^^^^ ------------  ---------- expected `&str`, found `String`
[INFO] [stdout]    |                                            |
[INFO] [stdout]    |                                            expected `&str`, found `String`
[INFO] [stdout]    |
[INFO] [stdout] note: associated function defined here
[INFO] [stdout]   --> src/transaction.rs:21:12
[INFO] [stdout]    |
[INFO] [stdout] 21 |     pub fn new_UTXO(from: &str, to: &str, amount: i32, bc: &Blockchain) -> Result<Transaction> {
[INFO] [stdout]    |            ^^^^^^^^ ----------  --------
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(&from.clone(), to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                                            +
[INFO] [stdout] help: consider borrowing here
[INFO] [stdout]    |
[INFO] [stdout] 88 |             let tx = Transaction::new_UTXO(from.clone(), &to.clone(), *amount, &bc)?;
[INFO] [stdout]    |                                                          +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no associated function or constant named `new` found for struct `TxOutput` in the current scope
[INFO] [stdout]   --> src/transaction.rs:53:23
[INFO] [stdout]    |
[INFO] [stdout] 53 |             TxOutput::new(amount, to.to_string())?,
[INFO] [stdout]    |                       ^^^ associated function or constant not found in `TxOutput`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/tx.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct TxOutput {
[INFO] [stdout]    | ------------------- associated function or constant `new` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `new`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `UniformSampler`
[INFO] [stdout]            candidate #2: `gimli::read::lookup::PubStuffEntry`
[INFO] [stdout]            candidate #3: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no associated function or constant named `new` found for struct `TxOutput` in the current scope
[INFO] [stdout]   --> src/transaction.rs:53:23
[INFO] [stdout]    |
[INFO] [stdout] 53 |             TxOutput::new(amount, to.to_string())?,
[INFO] [stdout]    |                       ^^^ associated function or constant not found in `TxOutput`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/tx.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct TxOutput {
[INFO] [stdout]    | ------------------- associated function or constant `new` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `new`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `UniformSampler`
[INFO] [stdout]            candidate #2: `gimli::read::lookup::PubStuffEntry`
[INFO] [stdout]            candidate #3: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no associated function or constant named `new` found for struct `TxOutput` in the current scope
[INFO] [stdout]   --> src/transaction.rs:56:33
[INFO] [stdout]    |
[INFO] [stdout] 56 |             vout.push(TxOutput::new(acc_v.0 - amount, from.to_string())?);
[INFO] [stdout]    |                                 ^^^ associated function or constant not found in `TxOutput`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/tx.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct TxOutput {
[INFO] [stdout]    | ------------------- associated function or constant `new` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `new`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `UniformSampler`
[INFO] [stdout]            candidate #2: `gimli::read::lookup::PubStuffEntry`
[INFO] [stdout]            candidate #3: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no associated function or constant named `new` found for struct `TxOutput` in the current scope
[INFO] [stdout]   --> src/transaction.rs:56:33
[INFO] [stdout]    |
[INFO] [stdout] 56 |             vout.push(TxOutput::new(acc_v.0 - amount, from.to_string())?);
[INFO] [stdout]    |                                 ^^^ associated function or constant not found in `TxOutput`
[INFO] [stdout]    |
[INFO] [stdout]   ::: src/tx.rs:14:1
[INFO] [stdout]    |
[INFO] [stdout] 14 | pub struct TxOutput {
[INFO] [stdout]    | ------------------- associated function or constant `new` not found for this struct
[INFO] [stdout]    |
[INFO] [stdout]    = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]    = note: the following traits define an item `new`, perhaps you need to implement one of them:
[INFO] [stdout]            candidate #1: `UniformSampler`
[INFO] [stdout]            candidate #2: `gimli::read::lookup::PubStuffEntry`
[INFO] [stdout]            candidate #3: `parking_lot_core::thread_parker::ThreadParkerT`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `TxInput` has no field named `script_sig`
[INFO] [stdout]   --> src/transaction.rs:77:17
[INFO] [stdout]    |
[INFO] [stdout] 77 |                 script_sig: data,
[INFO] [stdout]    |                 ^^^^^^^^^^ `TxInput` does not have this field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `signature`, `pub_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `TxOutput` has no field named `script_pub_key`
[INFO] [stdout]   --> src/transaction.rs:81:17
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 script_pub_key: to,
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ `TxOutput` does not have this field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `pub_key_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `TxInput` has no field named `script_sig`
[INFO] [stdout]   --> src/transaction.rs:77:17
[INFO] [stdout]    |
[INFO] [stdout] 77 |                 script_sig: data,
[INFO] [stdout]    |                 ^^^^^^^^^^ `TxInput` does not have this field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `signature`, `pub_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0560]: struct `TxOutput` has no field named `script_pub_key`
[INFO] [stdout]   --> src/transaction.rs:81:17
[INFO] [stdout]    |
[INFO] [stdout] 81 |                 script_pub_key: to,
[INFO] [stdout]    |                 ^^^^^^^^^^^^^^ `TxOutput` does not have this field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `pub_key_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/transaction.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |             tx_copy.id = tx_copy.hash();
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^ expected `String`, found `Result<String, Error>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `std::string::String`
[INFO] [stdout]                  found enum `std::result::Result<std::string::String, failure::Error>`
[INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<std::string::String, failure::Error>` value, propagating a `Result::Err` value to the caller
[INFO] [stdout]     |
[INFO] [stdout] 119 |             tx_copy.id = tx_copy.hash()?;
[INFO] [stdout]     |                                        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/transaction.rs:119:26
[INFO] [stdout]     |
[INFO] [stdout] 119 |             tx_copy.id = tx_copy.hash();
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^ expected `String`, found `Result<String, Error>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `std::string::String`
[INFO] [stdout]                  found enum `std::result::Result<std::string::String, failure::Error>`
[INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<std::string::String, failure::Error>` value, propagating a `Result::Err` value to the caller
[INFO] [stdout]     |
[INFO] [stdout] 119 |             tx_copy.id = tx_copy.hash()?;
[INFO] [stdout]     |                                        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Transaction` in the current scope
[INFO] [stdout]    --> src/transaction.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout]  14 | pub struct Transaction {
[INFO] [stdout]     | ---------------------- method `as_bytes` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 124 |                 tx_copy.as_bytes(),
[INFO] [stdout]     |                         ^^^^^^^^ method not found in `Transaction`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `as_bytes`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `OsStrExt`
[INFO] [stdout]             candidate #2: `zerocopy::AsBytes`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 tx_copy.id.as_bytes(),
[INFO] [stdout]     |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Transaction` in the current scope
[INFO] [stdout]    --> src/transaction.rs:124:25
[INFO] [stdout]     |
[INFO] [stdout]  14 | pub struct Transaction {
[INFO] [stdout]     | ---------------------- method `as_bytes` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 124 |                 tx_copy.as_bytes(),
[INFO] [stdout]     |                         ^^^^^^^^ method not found in `Transaction`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `as_bytes`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `OsStrExt`
[INFO] [stdout]             candidate #2: `zerocopy::AsBytes`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 124 |                 tx_copy.id.as_bytes(),
[INFO] [stdout]     |                         +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/transaction.rs:157:26
[INFO] [stdout]     |
[INFO] [stdout] 157 |             tx_copy.id = tx_copy.hash();
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^ expected `String`, found `Result<String, Error>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `std::string::String`
[INFO] [stdout]                  found enum `std::result::Result<std::string::String, failure::Error>`
[INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<std::string::String, failure::Error>` value, propagating a `Result::Err` value to the caller
[INFO] [stdout]     |
[INFO] [stdout] 157 |             tx_copy.id = tx_copy.hash()?;
[INFO] [stdout]     |                                        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0308]: mismatched types
[INFO] [stdout]    --> src/transaction.rs:157:26
[INFO] [stdout]     |
[INFO] [stdout] 157 |             tx_copy.id = tx_copy.hash();
[INFO] [stdout]     |             ----------   ^^^^^^^^^^^^^^ expected `String`, found `Result<String, Error>`
[INFO] [stdout]     |             |
[INFO] [stdout]     |             expected due to the type of this binding
[INFO] [stdout]     |
[INFO] [stdout]     = note: expected struct `std::string::String`
[INFO] [stdout]                  found enum `std::result::Result<std::string::String, failure::Error>`
[INFO] [stdout] help: use the `?` operator to extract the `std::result::Result<std::string::String, failure::Error>` value, propagating a `Result::Err` value to the caller
[INFO] [stdout]     |
[INFO] [stdout] 157 |             tx_copy.id = tx_copy.hash()?;
[INFO] [stdout]     |                                        +
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Transaction` in the current scope
[INFO] [stdout]    --> src/transaction.rs:159:56
[INFO] [stdout]     |
[INFO] [stdout]  14 | pub struct Transaction {
[INFO] [stdout]     | ---------------------- method `as_bytes` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 159 |             let signature = ed25519::signature(tx_copy.as_bytes(), private_key);
[INFO] [stdout]     |                                                        ^^^^^^^^ method not found in `Transaction`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `as_bytes`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `OsStrExt`
[INFO] [stdout]             candidate #2: `zerocopy::AsBytes`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let signature = ed25519::signature(tx_copy.id.as_bytes(), private_key);
[INFO] [stdout]     |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0599]: no method named `as_bytes` found for struct `Transaction` in the current scope
[INFO] [stdout]    --> src/transaction.rs:159:56
[INFO] [stdout]     |
[INFO] [stdout]  14 | pub struct Transaction {
[INFO] [stdout]     | ---------------------- method `as_bytes` not found for this struct
[INFO] [stdout] ...
[INFO] [stdout] 159 |             let signature = ed25519::signature(tx_copy.as_bytes(), private_key);
[INFO] [stdout]     |                                                        ^^^^^^^^ method not found in `Transaction`
[INFO] [stdout]     |
[INFO] [stdout]     = help: items from traits can only be used if the trait is implemented and in scope
[INFO] [stdout]     = note: the following traits define an item `as_bytes`, perhaps you need to implement one of them:
[INFO] [stdout]             candidate #1: `OsStrExt`
[INFO] [stdout]             candidate #2: `zerocopy::AsBytes`
[INFO] [stdout] help: one of the expressions' fields has a method of the same name
[INFO] [stdout]     |
[INFO] [stdout] 159 |             let signature = ed25519::signature(tx_copy.id.as_bytes(), private_key);
[INFO] [stdout]     |                                                        +++
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `script_sig` on type `&TxInput`
[INFO] [stdout]   --> src/tx.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 |         self.script_sig == unlocking_data
[INFO] [stdout]    |              ^^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `txid`, `vout`, `signature`, `pub_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `script_pub_key` on type `&TxOutput`
[INFO] [stdout]   --> src/tx.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |         self.script_pub_key == unlocking_data
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `value`, `pub_key_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `script_sig` on type `&TxInput`
[INFO] [stdout]   --> src/tx.rs:21:14
[INFO] [stdout]    |
[INFO] [stdout] 21 |         self.script_sig == unlocking_data
[INFO] [stdout]    |              ^^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `txid`, `vout`, `signature`, `pub_key`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] error[E0609]: no field `script_pub_key` on type `&TxOutput`
[INFO] [stdout]   --> src/tx.rs:27:14
[INFO] [stdout]    |
[INFO] [stdout] 27 |         self.script_pub_key == unlocking_data
[INFO] [stdout]    |              ^^^^^^^^^^^^^^ unknown field
[INFO] [stdout]    |
[INFO] [stdout]    = note: available fields are: `value`, `pub_key_hash`
[INFO] [stdout] 
[INFO] [stdout] 
[INFO] [stdout] Some errors have detailed explanations: E0308, E0560, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my-chain` (lib test) due to 11 previous errors; 7 warnings emitted
[INFO] [stderr] warning: build failed, waiting for other jobs to finish...
[INFO] [stdout] Some errors have detailed explanations: E0308, E0560, E0599, E0609.
[INFO] [stdout] 
[INFO] [stdout] For more information about an error, try `rustc --explain E0308`.
[INFO] [stdout] 
[INFO] [stderr] error: could not compile `my-chain` (lib) due to 11 previous errors; 6 warnings emitted
[INFO] running `Command { std: "docker" "inspect" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e", kill_on_drop: false }`
[INFO] running `Command { std: "docker" "rm" "-f" "d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e", kill_on_drop: false }`
[INFO] [stdout] d1c89991182a0ace82c00019db2524aabcdc5822648e3a08400f838ab835a74e
